﻿using Autofac;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace VIP.Events
{
    public static class EventsExtentions
    {
        public static ContainerBuilder AddEventServices(this ContainerBuilder builder)
        {
            builder.RegisterType<EventSender>().As<IEventSender>().InstancePerLifetimeScope()
                .PropertiesAutowired();//支持属性注入
            return builder;
        }
    }
}
